﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Common.Dto
{
    public class WithErrorDto
    {
        public bool Success
        {
            get
            {
                return Errors == null || Errors.Count == 0;
            }
        }
        public bool Error
        {
            get
            {
                return !Success;
            }
        }
        public readonly List<string> Errors;

        public WithErrorDto()
        {
            Errors = new List<string>();
        }
    }
}
